package com.wyzz.hr.action;

import java.util.List;

import com.wyzz.hr.base.BaseAction;
import com.wyzz.hr.bo.IEmpSalaryAcctBo;
import com.wyzz.hr.bo.IJobTitleBo;
import com.wyzz.hr.bo.IJobgradeBO;
import com.wyzz.hr.pojo.Empsalaryacct;
import com.wyzz.hr.spring.SpringBeanFactory;

public class JobtitleManagementAction extends BaseAction {

	public JobtitleManagementAction() {
	}

	public String execute() throws Exception {
		IJobTitleBo jobTitleBo = (IJobTitleBo) SpringBeanFactory
				.getBean("jobTitleBo");
		allJobTitle = jobTitleBo.FindAllJobTitle();
		IEmpSalaryAcctBo empSalaryAcctBo = (IEmpSalaryAcctBo) getBean("empsalaryacctBo");
		empsalaryacctList = empSalaryAcctBo.getObjects(Empsalaryacct.class,
				null);
		IJobgradeBO jobgradeBo = (IJobgradeBO) SpringBeanFactory
				.getBean("jobgradeBO");
		jobgradeList = jobgradeBo.FindAllJobgrade();
		return "success";
	}

	public List getAllJobTitle() {
		return allJobTitle;
	}

	public void setAllJobTitle(List allJobTitle) {
		this.allJobTitle = allJobTitle;
	}

	public List getEmpsalaryacctList() {
		return empsalaryacctList;
	}

	public void setEmpsalaryacctList(List empsalaryacctList) {
		this.empsalaryacctList = empsalaryacctList;
	}

	public List getJobgradeList() {
		return jobgradeList;
	}

	public void setJobgradeList(List jobgradeList) {
		this.jobgradeList = jobgradeList;
	}

	private List allJobTitle;
	private List empsalaryacctList;
	private List jobgradeList;
}
